<script>
    var d = '<?= count($reservation->availability) > 0 ? json_encode($reservation->availability) : 0; ?>';
</script>

<div class="check">

    <div id="payment_insurance">

        <div class="payment calculation2">
            <?
            $this->load->view('parts/total', array(
            'service_total' => $reservation->reservation->service_total,
            'total' => $reservation->reservation->price_total,
            'tax' => isset($reservation->tax)?$reservation->tax:NULL,
            'service_name' => $reservation->room->service_name,
            'R_30_PERCENT' => '000',
            ))
            ?>
        </div>
    </div>

    <div class="sec">

        <div id="prices_tab" class="tabdiv clearfix">

            <div class="pull-left oneborder">

                <form class="form-horizontal" id="prices_form" action="<?= lang_url('reservation') ?>" method="get">

                    <input type="hidden" name="hotel_id" id="hotel_id" value="<?= $_GET['hotel_id'] ?>">
                    <input type="hidden" name="room_id" value="<?= $_GET['room_id'] ?>">

                    <?
                    $this->load->view('parts/pricesform', array(
                    'default_nr_person' => $reservation->object_type_ID == 2 ? 2 : 2,
                    'adults_person' => $reservation->object_type_ID == 2 ? 5 : 12,
                    'service_name' => $reservation->room->service_name,
                    'service_price' => !isset($_GET['preview']) ? $reservation->room->selling_total : '0',
                    'service_total' => !isset($_GET['preview']) ? $reservation->room->total : '0',
                    'tax' => isset($reservation->tax)?$reservation->tax:NULL
                    ))
                    ?>

                </form>

            </div>



        </div><!--/prices_tab-->

    </div>

    <div class="hold_booknow">
        <input type="button" class="booknow <?= $reservation->room->selling_type_ID == 1 ? "request" : ""; ?>" value="<?= $reservation->room->selling_type_ID == 1 ? lang('res.send_request') : lang('res.book_now'); ?>" id="book_now_input">  
    </div><!-- /booknow-->

</div>
<script>
    preview = false;
</script>
